#pragma once

#include <iostream>
#include "cocos2d.h"

using namespace std;
using namespace cocos2d;

class HelpBoard : public Layer
{
public:
	CREATE_FUNC(HelpBoard);

private:
	virtual bool init() override;

	void nextStep();
	void lastStep();
	void exitHelp();

	bool onHelpTouchBegin(Touch* touch, Event* event);
	void onHelpTouchEnd(Touch* touch, Event* event);

	int m_nIndex;
	Point m_startPos;
	Point m_endPos;
	vector<Point> m_rgPosition;

	Sprite* m_pHelpImage = nullptr;
	Sprite* m_pSelectedP = nullptr;
	bool m_bPlayingAnimation = false;
};